<?php
/**
 * +----------------------------------------------------------------------
 * | summer framework
 * +----------------------------------------------------------------------
 * | Copyright (c) 2020 https://github.com/suframe/think-admin All rights reserved.
 * +----------------------------------------------------------------------
 * | Author: summer <806115620@qq.com>  2020/3/26 10:39
 * +----------------------------------------------------------------------
 */
declare (strict_types = 1);

namespace app\mall\logic\act;

use app\mall\model\MallAct;

abstract class Base
{

    /**
     * 创建
     * @param array $info
     * @return int
     */
    abstract function create(array $info): int;

    /**
     * 修改
     * @param MallAct $mallAct
     * @param $info
     * @return bool
     */
    abstract function update(MallAct $mallAct, $info):bool;

    /**
     * 活动上线
     * @param MallAct $mallAct
     * @return bool
     */
    public function up(MallAct $mallAct): bool
    {

    }

    /**
     * 活动下线
     * @param MallAct $mallAct
     * @return bool
     */
    public function down(MallAct $mallAct): bool
    {

    }

}